package com.talent.service;

import com.talent.entities.dto.VaccOrder;
import com.talent.entities.result.CommonResult;
import com.talent.mapper.VaccOrderMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

/**
 * @author 周意朗
 * Date: 2022/3/17
 * @since JDK 11
 */
@Service
public class VaccOrderService {
    @Resource
    public VaccOrderMapper mapper;

    public CommonResult<ArrayList<VaccOrder>> findOrderByUserId(String userId, int pageIndex) {
        return mapper.findOrderByUserId(userId, pageIndex);
    }

    public CommonResult<VaccOrder> findOrderByOrderId(Long id) {
        return mapper.findOrderByOrderId(id);
    }
}
